<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %> 
<form id="pagerForm" onsubmit="return dwzSearch(this, 'dialog');" action="bal_showCustMgrDetail.action" method="post">
	<input type="hidden" name="pageNum" value="${currentPage }" />
	<input type="hidden" name="numPerPage" value="${numPerPage}" />
	<input type="hidden" name="billCode" value="${billCode}">
</form>
<div class="pageContent">
	<c:choose>
		<c:when test="${empty errorMsg }">
			<table class="table" width="100%" targetType="dialog" layoutH="50">
				<thead>
					<tr>
						<th>序号</th>
						<th>学校名称</th>
						<th>结算日期</th>
						<th>拓展人员</th>
						<th>维护人员</th>
						<th>移动客户经理</th>
						<th>在校生人数</th>
						<th>在校生开通量</th>
						<th>开通率</th>
						<th>结算费用</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${recordList }" var="bal" varStatus="status">
						<tr>
							<td>${(status.index+1) + (currentPage-1) * numPerPage}</td>
							<td>${bal.sclName }</td>
							<td>${bal.ywEndDate }</td>
							<td>${bal.saleUserName}</td>
							<td>${bal.saleKeepName}</td>
							<td>${bal.mobManagerName}</td>
							<td>${bal.inschNum}</td>
							<td>${bal.inschOpenNum}</td>
							<td><fmt:formatNumber value="${bal.ywUseRate}" type="number" pattern="0.00%" /> 
							</td>
							<td><fmt:formatNumber value="${bal.balFee}" type="number" pattern="￥0.00" /></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<div class="panelBar">
				<div class="pages">
					<span>页次&nbsp;${currentPage }&nbsp;/&nbsp;${pageCount }&nbsp;页，</span>
					<select class="combox" name="numPerPage"
						onchange="dwzPageBreak({targetType:dialog, numPerPage:this.value})">
						<option ${numPerPage==20?"selected":"" } value="20">20</option>
					</select> <span>&nbsp;条，共${recordCount}条</span>
				</div>

				<div class="pagination" targetType="dialog"
					totalCount="${recordCount}" numPerPage="${pageSize}"
					pageNumShown="${pageNumShown}" currentPage="${currentPage }">
				</div>

			</div>
		</c:when>
		<c:otherwise>
			<div style="padding: 5px;color: red;">页面加载错误！${errorMsg }</div>
		</c:otherwise>
	</c:choose>
</div>